package csu.web.mypetstore.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

//编辑我的账号信息
@WebServlet(name="EditMyAccountFormServlet",urlPatterns = {"/editMyAccountForm"})
public class EditMyAccountFormServlet extends HttpServlet {
    private static final String EIDIT_MY_ACCOUNT_FORM = "/WEB-INF/jsp/account/editAccountForm.jsp";
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        HttpSession session = req.getSession();
        session.setAttribute("action","viewingEditAccountForm");

        req.getRequestDispatcher(EIDIT_MY_ACCOUNT_FORM).forward(req,resp);
    }
}
